#include "UiVPlayerMidbody.h"
#include "ShellWnd.h"

#ifdef MERGER_APP_TO_SHELL
	extern HINSTANCE g_SDHResModuleHandle;
#endif
UiVPlayerMidbody::UiVPlayerMidbody()
{
}

UiVPlayerMidbody::~UiVPlayerMidbody()
{
}

BOOL UiVPlayerMidbody::InitUiWin(void)
{
	BOOL bRtn = FALSE;
	LoadiInterItem();
	return bRtn;
}

void UiVPlayerMidbody::PaintWin(HDC hdc, RECT* prcWin, RECT* prcUpdate)
{
	m_VideoMainBG->Draw(hdc, prcWin, false, false);
}

int UiVPlayerMidbody::OnLButtonDown(UINT fwKeys, int xPos, int yPos)
{
	return UiWin::OnLButtonDown(fwKeys, xPos, yPos);

}

int UiVPlayerMidbody::OnLButtonUp(UINT fwKeys, int xPos, int yPos)
{
	return UiWin::OnLButtonUp(fwKeys, xPos, yPos);

}

void UiVPlayerMidbody::LoadiInterItem()
{
//jdhuang 20120818
#ifndef MERGER_APP_TO_SHELL
	m_VideoMainBG = ImagingHelper::GetImageObject(MzGetInstanceHandle(), 1042);
#else
	m_VideoMainBG = ImagingHelper::GetImageObject(g_SDHResModuleHandle, 7042);
//	m_MusicInfoBG = ImagingHelper::GetImageObject(g_SDHResModuleHandle, 7043);
#endif

	RECT rtStaticDisc[MAX_VIRTUAL_DISC] = 
	{
		118,103, 133, 118,
		243, 103, 258, 118,
		368, 103, 383, 118,
		493, 103, 508, 118,
		615, 103, 630, 118,
		742, 103, 757, 118,
	};
	m_staticDisc[VIRTUAL_DISC_ONE].SetPos(rtStaticDisc[VIRTUAL_DISC_ONE].left, rtStaticDisc[VIRTUAL_DISC_ONE].top,
				rtStaticDisc[VIRTUAL_DISC_ONE].right-rtStaticDisc[VIRTUAL_DISC_ONE].left,
				rtStaticDisc[VIRTUAL_DISC_ONE].bottom-rtStaticDisc[VIRTUAL_DISC_ONE].top);
	m_staticDisc[VIRTUAL_DISC_ONE].SetTextColor(RGB(255, 255, 255));
	m_staticDisc[VIRTUAL_DISC_ONE].SetText(L"1");
	AddChild(&m_staticDisc[VIRTUAL_DISC_ONE]);

	m_staticDisc[VIRTUAL_DISC_TWO].SetPos(rtStaticDisc[VIRTUAL_DISC_TWO].left, rtStaticDisc[VIRTUAL_DISC_TWO].top,
				rtStaticDisc[VIRTUAL_DISC_TWO].right-rtStaticDisc[VIRTUAL_DISC_TWO].left,
				rtStaticDisc[VIRTUAL_DISC_TWO].bottom-rtStaticDisc[VIRTUAL_DISC_TWO].top);
	m_staticDisc[VIRTUAL_DISC_TWO].SetTextColor(RGB(255, 255, 255));
	m_staticDisc[VIRTUAL_DISC_TWO].SetText(L"2");
	AddChild(&m_staticDisc[VIRTUAL_DISC_TWO]);

	m_staticDisc[VIRTUAL_DISC_THREE].SetPos(rtStaticDisc[VIRTUAL_DISC_THREE].left, rtStaticDisc[VIRTUAL_DISC_THREE].top,
				rtStaticDisc[VIRTUAL_DISC_THREE].right-rtStaticDisc[VIRTUAL_DISC_THREE].left,
				rtStaticDisc[VIRTUAL_DISC_THREE].bottom-rtStaticDisc[VIRTUAL_DISC_THREE].top);
	m_staticDisc[VIRTUAL_DISC_THREE].SetTextColor(RGB(255, 255, 255));
	m_staticDisc[VIRTUAL_DISC_THREE].SetText(L"3");
	AddChild(&m_staticDisc[VIRTUAL_DISC_THREE]);

	m_staticDisc[VIRTUAL_DISC_FOUR].SetPos(rtStaticDisc[VIRTUAL_DISC_FOUR].left, rtStaticDisc[VIRTUAL_DISC_FOUR].top,
				rtStaticDisc[VIRTUAL_DISC_FOUR].right-rtStaticDisc[VIRTUAL_DISC_FOUR].left,
				rtStaticDisc[VIRTUAL_DISC_FOUR].bottom-rtStaticDisc[VIRTUAL_DISC_FOUR].top);
	m_staticDisc[VIRTUAL_DISC_FOUR].SetTextColor(RGB(255, 255, 255));
	m_staticDisc[VIRTUAL_DISC_FOUR].SetText(L"4");
	AddChild(&m_staticDisc[VIRTUAL_DISC_FOUR]);

	m_staticDisc[VIRTUAL_DISC_FIVE].SetPos(rtStaticDisc[VIRTUAL_DISC_FIVE].left, rtStaticDisc[VIRTUAL_DISC_FIVE].top,
				rtStaticDisc[VIRTUAL_DISC_FIVE].right-rtStaticDisc[VIRTUAL_DISC_FIVE].left,
				rtStaticDisc[VIRTUAL_DISC_FIVE].bottom-rtStaticDisc[VIRTUAL_DISC_FIVE].top);
	m_staticDisc[VIRTUAL_DISC_FIVE].SetTextColor(RGB(255, 255, 255));
	m_staticDisc[VIRTUAL_DISC_FIVE].SetText(L"5");
	AddChild(&m_staticDisc[VIRTUAL_DISC_FIVE]);

	m_staticDisc[VIRTUAL_DISC_SIX].SetPos(rtStaticDisc[VIRTUAL_DISC_SIX].left, rtStaticDisc[VIRTUAL_DISC_SIX].top,
				rtStaticDisc[VIRTUAL_DISC_SIX].right-rtStaticDisc[VIRTUAL_DISC_SIX].left,
				rtStaticDisc[VIRTUAL_DISC_SIX].bottom-rtStaticDisc[VIRTUAL_DISC_SIX].top);
	m_staticDisc[VIRTUAL_DISC_SIX].SetTextColor(RGB(255, 255, 255));
	m_staticDisc[VIRTUAL_DISC_SIX].SetText(L"6");
	AddChild(&m_staticDisc[VIRTUAL_DISC_SIX]);

	RECT rtBtnDisc[MAX_VIRTUAL_DISC] = 
	{
		30, 16, 144, 130,
		155, 16, 269, 130,
		280, 16, 394, 130,
		405, 16, 519, 130,
		530, 16, 641, 130,
		655, 16, 769, 130,
	};
	m_BtnUiMidbody[VIRTUAL_DISC_ONE].SetPos(rtBtnDisc[VIRTUAL_DISC_ONE].left, rtBtnDisc[VIRTUAL_DISC_ONE].top,
				rtBtnDisc[VIRTUAL_DISC_ONE].right-rtBtnDisc[VIRTUAL_DISC_ONE].left,
				rtBtnDisc[VIRTUAL_DISC_ONE].bottom-rtBtnDisc[VIRTUAL_DISC_ONE].top);
	m_BtnUiMidbody[VIRTUAL_DISC_ONE].SetID(3100);
#ifndef MERGER_APP_TO_SHELL
	m_BtnUiMidbody[VIRTUAL_DISC_ONE].SetNormalImage(ImagingHelper::GetImageObject(MzGetInstanceHandle(),1014, true));
	m_BtnUiMidbody[VIRTUAL_DISC_ONE].SetPressedImage(ImagingHelper::GetImageObject(MzGetInstanceHandle(),1017, true));
#else
	m_BtnUiMidbody[VIRTUAL_DISC_ONE].SetNormalImage(ImagingHelper::GetImageObject(g_SDHResModuleHandle,7014, true));
	m_BtnUiMidbody[VIRTUAL_DISC_ONE].SetPressedImage(ImagingHelper::GetImageObject(g_SDHResModuleHandle,7017, true));
#endif
	AddChild(&m_BtnUiMidbody[VIRTUAL_DISC_ONE]);

	m_BtnUiMidbody[VIRTUAL_DISC_TWO].SetPos(rtBtnDisc[VIRTUAL_DISC_TWO].left, rtBtnDisc[VIRTUAL_DISC_TWO].top,
				rtBtnDisc[VIRTUAL_DISC_TWO].right-rtBtnDisc[VIRTUAL_DISC_TWO].left,
				rtBtnDisc[VIRTUAL_DISC_TWO].bottom-rtBtnDisc[VIRTUAL_DISC_TWO].top);
	m_BtnUiMidbody[VIRTUAL_DISC_TWO].SetID(3101);
#ifndef MERGER_APP_TO_SHELL
	m_BtnUiMidbody[VIRTUAL_DISC_TWO].SetNormalImage(ImagingHelper::GetImageObject(MzGetInstanceHandle(),1014, true));
	m_BtnUiMidbody[VIRTUAL_DISC_TWO].SetPressedImage(ImagingHelper::GetImageObject(MzGetInstanceHandle(),1017, true));
#else
	m_BtnUiMidbody[VIRTUAL_DISC_TWO].SetNormalImage(ImagingHelper::GetImageObject(g_SDHResModuleHandle,7014, true));
	m_BtnUiMidbody[VIRTUAL_DISC_TWO].SetPressedImage(ImagingHelper::GetImageObject(g_SDHResModuleHandle,7017, true));
#endif
	AddChild(&m_BtnUiMidbody[VIRTUAL_DISC_TWO]);

	m_BtnUiMidbody[VIRTUAL_DISC_THREE].SetPos(rtBtnDisc[VIRTUAL_DISC_THREE].left, rtBtnDisc[VIRTUAL_DISC_THREE].top,
				rtBtnDisc[VIRTUAL_DISC_THREE].right-rtBtnDisc[VIRTUAL_DISC_THREE].left,
				rtBtnDisc[VIRTUAL_DISC_THREE].bottom-rtBtnDisc[VIRTUAL_DISC_THREE].top);
	m_BtnUiMidbody[VIRTUAL_DISC_THREE].SetID(3102);
#ifndef MERGER_APP_TO_SHELL
	m_BtnUiMidbody[VIRTUAL_DISC_THREE].SetNormalImage(ImagingHelper::GetImageObject(MzGetInstanceHandle(),1014, true));
	m_BtnUiMidbody[VIRTUAL_DISC_THREE].SetPressedImage(ImagingHelper::GetImageObject(MzGetInstanceHandle(),1017, true));
#else
	m_BtnUiMidbody[VIRTUAL_DISC_THREE].SetNormalImage(ImagingHelper::GetImageObject(g_SDHResModuleHandle,7014, true));
	m_BtnUiMidbody[VIRTUAL_DISC_THREE].SetPressedImage(ImagingHelper::GetImageObject(g_SDHResModuleHandle,7017, true));
#endif
	AddChild(&m_BtnUiMidbody[VIRTUAL_DISC_THREE]);
	
	m_BtnUiMidbody[VIRTUAL_DISC_FOUR].SetPos(rtBtnDisc[VIRTUAL_DISC_FOUR].left, rtBtnDisc[VIRTUAL_DISC_FOUR].top,
				rtBtnDisc[VIRTUAL_DISC_FOUR].right-rtBtnDisc[VIRTUAL_DISC_FOUR].left,
				rtBtnDisc[VIRTUAL_DISC_FOUR].bottom-rtBtnDisc[VIRTUAL_DISC_FOUR].top);
	m_BtnUiMidbody[VIRTUAL_DISC_FOUR].SetID(3103);
#ifndef MERGER_APP_TO_SHELL
	m_BtnUiMidbody[VIRTUAL_DISC_FOUR].SetNormalImage(ImagingHelper::GetImageObject(MzGetInstanceHandle(),1014, true));
	m_BtnUiMidbody[VIRTUAL_DISC_FOUR].SetPressedImage(ImagingHelper::GetImageObject(MzGetInstanceHandle(),1017, true));
#else
	m_BtnUiMidbody[VIRTUAL_DISC_FOUR].SetNormalImage(ImagingHelper::GetImageObject(g_SDHResModuleHandle,7014, true));
	m_BtnUiMidbody[VIRTUAL_DISC_FOUR].SetPressedImage(ImagingHelper::GetImageObject(g_SDHResModuleHandle,7017, true));
#endif
	AddChild(&m_BtnUiMidbody[VIRTUAL_DISC_FOUR]);
	
	m_BtnUiMidbody[VIRTUAL_DISC_FIVE].SetPos(rtBtnDisc[VIRTUAL_DISC_FIVE].left, rtBtnDisc[VIRTUAL_DISC_FIVE].top,
				rtBtnDisc[VIRTUAL_DISC_FIVE].right-rtBtnDisc[VIRTUAL_DISC_FIVE].left,
				rtBtnDisc[VIRTUAL_DISC_FIVE].bottom-rtBtnDisc[VIRTUAL_DISC_FIVE].top);
	m_BtnUiMidbody[VIRTUAL_DISC_FIVE].SetID(3104);
#ifndef MERGER_APP_TO_SHELL
	m_BtnUiMidbody[VIRTUAL_DISC_FIVE].SetNormalImage(ImagingHelper::GetImageObject(MzGetInstanceHandle(),1014, true));
	m_BtnUiMidbody[VIRTUAL_DISC_FIVE].SetPressedImage(ImagingHelper::GetImageObject(MzGetInstanceHandle(),1017, true));
#else
	m_BtnUiMidbody[VIRTUAL_DISC_FIVE].SetNormalImage(ImagingHelper::GetImageObject(g_SDHResModuleHandle,7014, true));
	m_BtnUiMidbody[VIRTUAL_DISC_FIVE].SetPressedImage(ImagingHelper::GetImageObject(g_SDHResModuleHandle,7017, true));
#endif
	AddChild(&m_BtnUiMidbody[VIRTUAL_DISC_FIVE]);
	
	m_BtnUiMidbody[VIRTUAL_DISC_SIX].SetPos(rtBtnDisc[VIRTUAL_DISC_SIX].left, rtBtnDisc[VIRTUAL_DISC_SIX].top,
				rtBtnDisc[VIRTUAL_DISC_SIX].right-rtBtnDisc[VIRTUAL_DISC_SIX].left,
				rtBtnDisc[VIRTUAL_DISC_SIX].bottom-rtBtnDisc[VIRTUAL_DISC_SIX].top);
	m_BtnUiMidbody[VIRTUAL_DISC_SIX].SetID(3105);
#ifndef MERGER_APP_TO_SHELL
	m_BtnUiMidbody[VIRTUAL_DISC_SIX].SetNormalImage(ImagingHelper::GetImageObject(MzGetInstanceHandle(),1014, true));
	m_BtnUiMidbody[VIRTUAL_DISC_SIX].SetPressedImage(ImagingHelper::GetImageObject(MzGetInstanceHandle(),1017, true));
#else
	m_BtnUiMidbody[VIRTUAL_DISC_SIX].SetNormalImage(ImagingHelper::GetImageObject(g_SDHResModuleHandle,7014, true));
	m_BtnUiMidbody[VIRTUAL_DISC_SIX].SetPressedImage(ImagingHelper::GetImageObject(g_SDHResModuleHandle,7017, true));
#endif
	AddChild(&m_BtnUiMidbody[VIRTUAL_DISC_SIX]);

	RECT rtProgress = {168, 300, 632, 336};
	m_slideBar[VPLAYER_MIDBODY_STATUSBAR_PROGRESS].SetPos(rtProgress.left, rtProgress.top, rtProgress.right-rtProgress.left, rtProgress.bottom-rtProgress.top);
	m_slideBar[VPLAYER_MIDBODY_STATUSBAR_PROGRESS].SetStyle(SliderBar);
	m_slideBar[VPLAYER_MIDBODY_STATUSBAR_PROGRESS].SetID(3106);
#ifndef MERGER_APP_TO_SHELL
	m_slideBar[VPLAYER_MIDBODY_STATUSBAR_PROGRESS].SetSliderBitmap( ImagingHelper::GetImageObject(MzGetInstanceHandle(),1020, true),
															ImagingHelper::GetImageObject(MzGetInstanceHandle(),1021, true),
															ImagingHelper::GetImageObject(MzGetInstanceHandle(),1024, true),
															36, 36);
#else
	m_slideBar[VPLAYER_MIDBODY_STATUSBAR_PROGRESS].SetSliderBitmap( ImagingHelper::GetImageObject(g_SDHResModuleHandle,7020, true),
															ImagingHelper::GetImageObject(g_SDHResModuleHandle,7021, true),
															ImagingHelper::GetImageObject(g_SDHResModuleHandle,7024, true),
															36, 36);
#endif
	m_slideBar[VPLAYER_MIDBODY_STATUSBAR_PROGRESS].SetPadpos( 0 );
	AddChild(&m_slideBar[VPLAYER_MIDBODY_STATUSBAR_PROGRESS]);

//	RECT rtCurrTime = {80, 300, 150, 336};
	CMzString	strInfo;
	RECT rtSongInfo[MAX_VPLAYER_MIDBODY_STATIC_CTRL] = {
		80, 300, 150, 336,
		650, 300, 720, 336,
		85, 140, 200, 170,
		230, 140, 650, 170,
		85, 175, 200, 205,
		230, 175, 650, 205,
		85, 210, 200, 240,
		230, 210, 650, 240,
		85, 245, 200, 275,
		230, 245, 650, 275,
	};
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_CURRENTTIME].SetPos(rtSongInfo[VPLAYER_MIDBODY_TOPBAR_CURRENTTIME].left, rtSongInfo[VPLAYER_MIDBODY_TOPBAR_CURRENTTIME].top,
				rtSongInfo[VPLAYER_MIDBODY_TOPBAR_CURRENTTIME].right-rtSongInfo[VPLAYER_MIDBODY_TOPBAR_CURRENTTIME].left,
				rtSongInfo[VPLAYER_MIDBODY_TOPBAR_CURRENTTIME].bottom-rtSongInfo[VPLAYER_MIDBODY_TOPBAR_CURRENTTIME].top);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_CURRENTTIME].SetID(3107);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_CURRENTTIME].SetTextColor(RGB(255, 255, 255));
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_CURRENTTIME].SetText(L"00:00");
	AddChild(&m_staticCtl[VPLAYER_MIDBODY_TOPBAR_CURRENTTIME]);

//	RECT rtSongInfo[VPLAYER_MIDBODY_TOPBAR_DURATIONTIME] = {650, 300, 720, 336};
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_DURATIONTIME].SetPos(rtSongInfo[VPLAYER_MIDBODY_TOPBAR_DURATIONTIME].left, rtSongInfo[VPLAYER_MIDBODY_TOPBAR_DURATIONTIME].top,
			rtSongInfo[VPLAYER_MIDBODY_TOPBAR_DURATIONTIME].right-rtSongInfo[VPLAYER_MIDBODY_TOPBAR_DURATIONTIME].left,
			rtSongInfo[VPLAYER_MIDBODY_TOPBAR_DURATIONTIME].bottom-rtSongInfo[VPLAYER_MIDBODY_TOPBAR_DURATIONTIME].top);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_DURATIONTIME].SetID(3108);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_DURATIONTIME].SetTextColor(RGB(255, 255, 255));
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_DURATIONTIME].SetText(L"00:00");
	AddChild(&m_staticCtl[VPLAYER_MIDBODY_TOPBAR_DURATIONTIME]);

	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_FILENAME_LABEL].SetPos(rtSongInfo[VPLAYER_MIDBODY_TOPBAR_FILENAME_LABEL].left, rtSongInfo[VPLAYER_MIDBODY_TOPBAR_FILENAME_LABEL].top,
			rtSongInfo[VPLAYER_MIDBODY_TOPBAR_FILENAME_LABEL].right-rtSongInfo[VPLAYER_MIDBODY_TOPBAR_FILENAME_LABEL].left,
			rtSongInfo[VPLAYER_MIDBODY_TOPBAR_FILENAME_LABEL].bottom-rtSongInfo[VPLAYER_MIDBODY_TOPBAR_FILENAME_LABEL].top);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_FILENAME_LABEL].SetID(3109);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_FILENAME_LABEL].SetTextColor(RGB(255, 255, 255));
	strInfo = g_lanList[LANGUAGE_SONG_NAME].strValue;
	strInfo = strInfo + L":";
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_FILENAME_LABEL].SetText(strInfo);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_FILENAME_LABEL].SetDrawTextFormat(DT_VCENTER|DT_LEFT|DT_SINGLELINE);
	AddChild(&m_staticCtl[VPLAYER_MIDBODY_TOPBAR_FILENAME_LABEL]);

	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_FILENAME].SetPos(rtSongInfo[VPLAYER_MIDBODY_TOPBAR_FILENAME].left, rtSongInfo[VPLAYER_MIDBODY_TOPBAR_FILENAME].top,
			rtSongInfo[VPLAYER_MIDBODY_TOPBAR_FILENAME].right-rtSongInfo[VPLAYER_MIDBODY_TOPBAR_FILENAME].left,
			rtSongInfo[VPLAYER_MIDBODY_TOPBAR_FILENAME].bottom-rtSongInfo[VPLAYER_MIDBODY_TOPBAR_FILENAME].top);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_FILENAME].SetID(3110);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_FILENAME].SetTextColor(RGB(255, 255, 255));
//	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_FILENAME].SetText(L"00:00");
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_FILENAME].SetDrawTextFormat(DT_VCENTER|DT_LEFT|DT_SINGLELINE);
	AddChild(&m_staticCtl[VPLAYER_MIDBODY_TOPBAR_FILENAME]);

	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_SINGER_LABEL].SetPos(rtSongInfo[VPLAYER_MIDBODY_TOPBAR_SINGER_LABEL].left, rtSongInfo[VPLAYER_MIDBODY_TOPBAR_SINGER_LABEL].top,
			rtSongInfo[VPLAYER_MIDBODY_TOPBAR_SINGER_LABEL].right-rtSongInfo[VPLAYER_MIDBODY_TOPBAR_SINGER_LABEL].left,
			rtSongInfo[VPLAYER_MIDBODY_TOPBAR_SINGER_LABEL].bottom-rtSongInfo[VPLAYER_MIDBODY_TOPBAR_SINGER_LABEL].top);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_SINGER_LABEL].SetID(3111);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_SINGER_LABEL].SetTextColor(RGB(255, 255, 255));
	strInfo.ZeroBuffer();
	strInfo = g_lanList[LANGUAGE_SINGER].strValue;
	strInfo = strInfo + L":";
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_SINGER_LABEL].SetText(strInfo);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_SINGER_LABEL].SetDrawTextFormat(DT_VCENTER|DT_LEFT|DT_SINGLELINE);
	AddChild(&m_staticCtl[VPLAYER_MIDBODY_TOPBAR_SINGER_LABEL]);

	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_SINGER].SetPos(rtSongInfo[VPLAYER_MIDBODY_TOPBAR_SINGER].left, rtSongInfo[VPLAYER_MIDBODY_TOPBAR_SINGER].top,
			rtSongInfo[VPLAYER_MIDBODY_TOPBAR_SINGER].right-rtSongInfo[VPLAYER_MIDBODY_TOPBAR_SINGER].left,
			rtSongInfo[VPLAYER_MIDBODY_TOPBAR_SINGER].bottom-rtSongInfo[VPLAYER_MIDBODY_TOPBAR_SINGER].top);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_SINGER].SetID(3112);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_SINGER].SetTextColor(RGB(255, 255, 255));
//	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_SINGER].SetText(L"00:00");
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_SINGER].SetDrawTextFormat(DT_VCENTER|DT_LEFT|DT_SINGLELINE);
	AddChild(&m_staticCtl[VPLAYER_MIDBODY_TOPBAR_SINGER]);

	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_ALBUM_LABEL].SetPos(rtSongInfo[VPLAYER_MIDBODY_TOPBAR_ALBUM_LABEL].left, rtSongInfo[VPLAYER_MIDBODY_TOPBAR_ALBUM_LABEL].top,
			rtSongInfo[VPLAYER_MIDBODY_TOPBAR_ALBUM_LABEL].right-rtSongInfo[VPLAYER_MIDBODY_TOPBAR_ALBUM_LABEL].left,
			rtSongInfo[VPLAYER_MIDBODY_TOPBAR_ALBUM_LABEL].bottom-rtSongInfo[VPLAYER_MIDBODY_TOPBAR_ALBUM_LABEL].top);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_ALBUM_LABEL].SetID(3113);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_ALBUM_LABEL].SetTextColor(RGB(255, 255, 255));
	strInfo.ZeroBuffer();
	strInfo = g_lanList[LANGUAGE_ALBUM].strValue;
	strInfo = strInfo + L":";
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_ALBUM_LABEL].SetText(strInfo);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_ALBUM_LABEL].SetDrawTextFormat(DT_VCENTER|DT_LEFT|DT_SINGLELINE);
	AddChild(&m_staticCtl[VPLAYER_MIDBODY_TOPBAR_ALBUM_LABEL]);

	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_ALBUM].SetPos(rtSongInfo[VPLAYER_MIDBODY_TOPBAR_ALBUM].left, rtSongInfo[VPLAYER_MIDBODY_TOPBAR_ALBUM].top,
			rtSongInfo[VPLAYER_MIDBODY_TOPBAR_ALBUM].right-rtSongInfo[VPLAYER_MIDBODY_TOPBAR_ALBUM].left,
			rtSongInfo[VPLAYER_MIDBODY_TOPBAR_ALBUM].bottom-rtSongInfo[VPLAYER_MIDBODY_TOPBAR_ALBUM].top);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_ALBUM].SetID(3114);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_ALBUM].SetTextColor(RGB(255, 255, 255));
//	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_ALBUM].SetText(L"00:00");
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_ALBUM].SetDrawTextFormat(DT_VCENTER|DT_LEFT|DT_SINGLELINE);
	AddChild(&m_staticCtl[VPLAYER_MIDBODY_TOPBAR_ALBUM]);

	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_TRACK_LABEL].SetPos(rtSongInfo[VPLAYER_MIDBODY_TOPBAR_TRACK_LABEL].left, rtSongInfo[VPLAYER_MIDBODY_TOPBAR_TRACK_LABEL].top,
			rtSongInfo[VPLAYER_MIDBODY_TOPBAR_TRACK_LABEL].right-rtSongInfo[VPLAYER_MIDBODY_TOPBAR_TRACK_LABEL].left,
			rtSongInfo[VPLAYER_MIDBODY_TOPBAR_TRACK_LABEL].bottom-rtSongInfo[VPLAYER_MIDBODY_TOPBAR_TRACK_LABEL].top);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_TRACK_LABEL].SetID(3115);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_TRACK_LABEL].SetTextColor(RGB(255, 255, 255));
	strInfo.ZeroBuffer();
	strInfo = g_lanList[LANGUAGE_TRACKS].strValue;
	strInfo = strInfo + L":";
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_TRACK_LABEL].SetText(strInfo);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_TRACK_LABEL].SetDrawTextFormat(DT_VCENTER|DT_LEFT|DT_SINGLELINE);
	AddChild(&m_staticCtl[VPLAYER_MIDBODY_TOPBAR_TRACK_LABEL]);

	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_TRACK].SetPos(rtSongInfo[VPLAYER_MIDBODY_TOPBAR_TRACK].left, rtSongInfo[VPLAYER_MIDBODY_TOPBAR_TRACK].top,
			rtSongInfo[VPLAYER_MIDBODY_TOPBAR_TRACK].right-rtSongInfo[VPLAYER_MIDBODY_TOPBAR_TRACK].left,
			rtSongInfo[VPLAYER_MIDBODY_TOPBAR_TRACK].bottom-rtSongInfo[VPLAYER_MIDBODY_TOPBAR_TRACK].top);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_TRACK].SetID(3116);
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_TRACK].SetTextColor(RGB(255, 255, 255));
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_TRACK].SetText(L"00/00");
	m_staticCtl[VPLAYER_MIDBODY_TOPBAR_TRACK].SetDrawTextFormat(DT_VCENTER|DT_LEFT|DT_SINGLELINE);
	AddChild(&m_staticCtl[VPLAYER_MIDBODY_TOPBAR_TRACK]);
}

BOOL UiVPlayerMidbody::InitImages()
{
	return TRUE;
}
void UiVPlayerMidbody::DeleteImages()
{
}